package com.seckillpro.seckill_pro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.seckillpro.seckill_pro.pojo.TGoods;
import com.seckillpro.seckill_pro.vo.GoodsVo;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author lyx
 * @since 2021-03-05
 */
public interface TGoodsMapper extends BaseMapper<TGoods> {

    /**
     * 查询所有GoodsVo
     *
     * @return
     */
    List<GoodsVo> findGoodsVo();


    /**
     * 通过商品id查询GoodsVo
     *
     * @param goodId
     * @return
     */
    GoodsVo findGoodsVoByGoodId(Long goodId);


    void addGood(TGoods goods);
}
